<?php $this->load->helper('HTML'); 
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>
<h2 class="title">
    No. Nota : <?php echo $max_id?><br>
    Dealer : <?php echo $total_bayar->strnama_dealer?><br>
    Unit : <?php echo $total_bayar->strnama_unit?><br>
    Group : <?php echo $total_bayar->group?><br>
    </h2>
<p>&nbsp;</p>
<?php if($total_bayar->intjeniscicilan == 5):?>
<form id="arisan_form" method="post">
    
    <table width="70%" border="1" style="font-size: 12px;" cellpadding="1" cellspacing="1" align="center">
        <tr align="center" class="" bgcolor="grey">
            <th colspan="7">Angsuran</th>
         </tr>
         <tr>
            <th>1</th>
            <th>2</th>
            <th>3</th>
            <th>4</th>
            <th>5</th>
        </tr>
        <?php
        if(empty($view_bayar)){
        ?>
        <tr>
            <td colspan="5" align="center" bgcolor="red">Belum Ada Pembayaran Arisan</td>
        </tr>
        <?php
        }else{
        $no=1;
        foreach($view_bayar as $v): //echo $v->intid_arisan; echo $max_id;?>
       
        <tr>
            <td align="center"><?php echo ($v->c1==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 1)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>
';?></td>
            <td align="center"><?php echo ($v->c2==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 2)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>
'?></td>
            <td align="center"><?php echo ($v->c3==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 3)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>
'?></td>
            <td align="center"><?php echo ($v->c4==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 4)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>
'?></td>
            <td align="center"><?php echo ($v->c5==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 5)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>
'?></td>
            
        </tr>
        <?php $no++;endforeach; }?>
    </table>
</form>
<?php else:?>
<form id="arisan_form" method="post">
    <table width="70%" border="1" style="font-size: 12px;" cellpadding="1" cellspacing="1" align="center">
        <tr align="center" class="" bgcolor="grey">
            <th colspan="6">Angsuran</th>
         </tr>
         <tr>
            <th>1</th>
            <th>2</th>
            <th>3</th>
            <th>4</th>
            <th>5</th>
            <th>6</th>
            <th>7</th>
        </tr>
        <?php
        if(empty($view_bayar)){
        ?>
        <tr>
            <td colspan="5" align="center" bgcolor="red">Belum Ada Pembayaran Arisan</td>
        </tr>
        <?php
        }else{
        $no=1;
        foreach($view_bayar as $v):?>
        <tr>
     <td align="center"><?php echo ($v->c1==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 1)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>';?></td>
     <td align="center"><?php echo ($v->c2==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 2)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>'?></td>
     <td align="center"><?php echo ($v->c3==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 3)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>'?></td>
     <td align="center"><?php echo ($v->c4==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 4)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>'?></td>
     <td align="center"><?php echo ($v->c5==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 5)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>'?></td>
     <td align="center"><?php echo ($v->c6==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 6)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>'?></td>
     <td align="center"><?php echo ($v->c7==0)?'<a title=\'Klik Untuk Bayar\' href=\'javascript:void(0)\' onclick=\'klik_bayar('.$v->intid_arisan.', 7)\'>Belum Bayar</a>':'<img title="Sudah Bayar" src="'.base_url().'images/ico_alpha_CheckMarkGreen_2_16x16.png" align="absmiddle"/>'?></td>
        </tr>
        <?php $no++;endforeach; }?>
    </table>
</form>

<?php endif;?>